#include <cstdio>

int main( )
{
    int n, m;
    while ( scanf("%d%d", &n, &m) != EOF )
    {
        if ( n <= m )
        {
            printf("%d", n);
            while ( ++n <= m )
                printf(" %d", n);
            printf("\n");
        }
        else
        {
            if ( n % ( m + 1 ) )
                printf("%d\n", n % ( m + 1 ));
            else
                puts("none");
        }    
    }
    return 0;
}
